table of contents
GPSCAT(1) | GPSD Documentation | GPSCAT(1) |
NAME¶
gpscat - dump the output from a GPS
SYNOPSIS¶
gpscat [OPTIONS] file-or-serial-port
gpscat -h
gpscat -V
NOTE¶
Eurolinux support for this package is limited. %{note2}
DESCRIPTION¶
gpscat is a simple program for logging and packetizing GPS data streams. It takes input from a specified file or serial device (presumed to have a GPS attached) and reports to standard output. The program runs until end of input or it is interrupted by ^C or other means. It does not terminate on a bad packet; this is intentional.
In raw mode (the default) gpscat simply dumps its input to standard output. Nonprintable characters other than ASCII whitespace are rendered as hexadecimal string escapes.
In packetizing mode, gpscat uses the same code as gpsd(8)'s packet sniffer to break the input into packets. Packets are reported one per line; line breaks in the packets themselves are escaped.
This program is useful as a sanity checker when examining a new device. It can be used as a primitive NMEA logger, but beware that (a) interrupting it likely to cut off output in mid-sentence, and (b) to avoid displaying incomplete NMEA sentences right up next to shell prompts that often contain a $, raw mode always emits an extra final linefeed.
Also, be aware that packetizing mode will produce useless results -- probably consuming the entirety of input and appearing to hang -- if it is fed data that is not a sequence of packets of one of the known types.
OPTIONS¶
The program accepts the following options:
-?, -h, --help
-D LVL, --debug LVL
-p, --packetizer
-s SPEED, --speed SPEED
-t, --typeflag
-V, --version
RETURN VALUES¶
0
1
SEE ALSO¶
RESOURCES¶
Project web site: <https://gpsd.io/>
COPYING¶
This file is Copyright 2013 by the GPSD project
SPDX-License-Identifier: BSD-2-clause
AUTHOR¶
Eric S. Raymond
2023-01-10 | GPSD Version 3.25 |